#define MAX_STRING 256
#define MAX_LENGTH 25000
#define FILE_PACKAGE_LENGTH 512

typedef char rls_output[MAX_LENGTH];
typedef char rcd_output[MAX_STRING];
typedef char input[MAX_STRING];

struct get_output {
    char bloque[FILE_PACKAGE_LENGTH];
    int count;
};

struct put_input {
    string file_name<MAX_STRING>;
    int count;
    int offset;
    char data[FILE_PACKAGE_LENGTH];
};

struct get_input {
    string file_name<MAX_STRING>;
    int count;
};

program RPC_FS {
	version RPC_FS_VER {
		rls_output rls(void) = 1;
                rcd_output rcd(input) = 2;
                get_output get(get_input) = 3;
                int put(put_input) = 4;
	} = 1;
} = 0x30000001;
